import request from '@/utils/request'

// 查询历史数据列表
export function listHistoricalData(query) {
  return request({
    url: '/businessInfo/historicalData/list',
    method: 'get',
    params: query
  })
}

// 查询历史数据详细
export function getHistoricalData(dataId) {
  return request({
    url: '/businessInfo/historicalData/' + dataId,
    method: 'get'
  })
}

// 新增历史数据
export function addHistoricalData(data) {
  return request({
    url: '/businessInfo/historicalData',
    method: 'post',
    data: data
  })
}

// 修改历史数据
export function updateHistoricalData(data) {
  return request({
    url: '/businessInfo/historicalData',
    method: 'put',
    data: data
  })
}

// 删除历史数据
export function delHistoricalData(dataId) {
  return request({
    url: '/businessInfo/historicalData/' + dataId,
    method: 'delete'
  })
}
